package com.qsbc.pygram.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

import static org.apache.ibatis.type.JdbcType.DATE;
import static org.apache.ibatis.type.JdbcType.TIMESTAMP;

@Data
@TableName(value = "user")//数据库表名
public class User {
    @TableId(type = IdType.AUTO) //mp自带策略，生成19位值，数字类型使用这种策略，比如long
    private Long id;
    private String username;
    private String email;
    @JsonIgnore
    private String password;
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;

    private Integer deleted;
}
